-
-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop script and throw error if used same cli parameter twice #1823
Conversation
37c3f85
to
df9cbe7
Compare
Attention: the yargs parser can take more than one same parameter. It is processed such parameters as an Array of values. So Some of mwoffline parameters can be passed more than one time. These are: 'articleList', 'articleListToIgnore', 'addNamespaces' |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## main #1823 +/- ##
=======================================
Coverage 70.90% 70.90%
=======================================
Files 24 24
Lines 2622 2622
Branches 594 594
=======================================
Hits 1859 1859
Misses 657 657
Partials 106 106 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
@pavel-karatsiuba Why no review is requested here? Are you over? But I'm not happy with this PR for many reasons:
|
|
|
|
The test was changed. If I use |
Fixed error message if use same parameter more then one time.
2b702ac
to
b7ed180
Compare
e7335fe
to
4ff19c6
Compare
When the user accidentally passes to the command line the same parameter more than one time then he can get unexpected scraper behavior.
This PR is checking parameters and if one parameter is used more than one time then the script stops and an error throws.
fix: #1818